import java.util.Scanner;

/**
 * @author gao
 * @date 2025/8/9 10:45
 */

public class Solution {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNext()) {
            String s = in.nextLine();
            int[] hash = new int[26];
            for (int i = 0; i < s.length(); i++) {
                hash[s.charAt(i) - 'a']++;
            }
            for (int i = 0; i < hash.length; i++) {
                if (hash[i] > 0) {
                    // 统计字母出现的次数
                    System.out.println((char) ('a' + i) + ":" + hash[i]);
                }
            }
        }
    }
}